<?php

namespace slinks\extensions\action\result;

use slinks\extensions\action\core\IActionContext;
use slinks\extensions\action\configuration\IResultMapping;

/**
 * Echo's the result. 
 * 
 * @author Navid Mitchell
 *
 */
class EchoResult implements IResult {

    /**
     * Executes the given result. 
     * 
     * @param IResultMapping $resultMapping
     * @param ParameterBagInterface $parameters
     */
    public function execute(IResultMapping $resultMapping, IActionContext $actionContext) {
        echo $resultMapping->getValue();
    }

}